//
//  AESSecurityTool.h
//  AESSecurity
//
//  Created by  on 15/11/26.
//  Copyright © 2015年 caocaosong. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AESSecurityTool : NSObject


//保存AES密钥到本地
+ (BOOL)saveAESKeyWithString:(NSString *)string;

+ (BOOL)canImportKey;

//AES加密，返回NSData
+ (NSData *)encryptAndBase64ToDataWithString:(NSString *)str;

//AES加密，再base64，返回NSString
+ (NSString *)encryptAndBase64ToStringWithString:(NSString *)str;


//先base64，再解密，返回NSData
+ (NSString *)decryptAndBase64ToStringWithString:(NSString *)str;

//先base64，再解密，返回NSString
+ (NSData *)decryptAndBase64ToDataWithString:(NSString *)str;

@end
